:root {
    --primary-blue: #00529B;
    --primary-blue-hover: #003d73;
    --white: #ffffff;
    --text-muted: #666666;
    --border-light: #e0e0e0;
    --secure-red: #d32f2f;
    --secure-green: #2e7d32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    width: 1000px;
    height: 550px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.login-section h2 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background-color: #fafafa;
    transition: all 0.25s ease;
}

.form-group input:focus {
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.15);
}

.secure-gate-container input {
    border-left: 4px solid var(--secure-green);
}

.security-warning-badge {
    position: absolute;
    right: 12px;
    top: -10px;
    background: var(--secure-green);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.error-msg-box {
    background-color: #ffebee;
    color: var(--secure-red);
    border: 1px solid #ffcdd2;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 5px;
}

.login-btn:hover {
    background-color: var(--primary-blue-hover);
}

.login-btn:active {
    transform: scale(0.99);
}

.footer-text {
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.logo-section {
    flex: 1;
    background-color: var(--primary-blue);
    background-image:
        linear-gradient(30deg, #004685 12%, transparent 12.5%, transparent 87%, #004685 87.5%, #004685),
        linear-gradient(150deg, #004685 12%, transparent 12.5%, transparent 87%, #004685 87.5%, #004685),
        linear-gradient(30deg, #004685 12%, transparent 12.5%, transparent 87%, #004685 87.5%, #004685),
        linear-gradient(150deg, #004685 12%, transparent 12.5%, transparent 87%, #004685 87.5%, #004685),
        linear-gradient(60deg, #005bb1 25%, transparent 25.5%, transparent 75%, #005bb1 75%, #005bb1),
        linear-gradient(60deg, #005bb1 25%, transparent 25.5%, transparent 75%, #005bb1 75%, #005bb1);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.white-circle {
    width: 240px;
    height: 240px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    overflow: hidden;
}

.white-circle img {
    width: 100%;
    height: auto;
    border-radius: 100%;
}

.school-info {
    text-align: center;
}

.school-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.school-info p {
    font-size: 18px;
    opacity: 0.9;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        width: 95%;
        margin: 20px auto;
    }

    .logo-section {
        display: none;
    }

    .login-section {
        padding: 35px 20px;
    }
}